#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
sort(char* name[], int n)
{
	char* pt;
	int i, j, k;
	for (i = 0; i < n - 1; i++)
	{
		k = i;
		for (j = i + 1; j < n; j++)
			if (strcmp(name[k], name[j]) > 0)
				k = j;
		if (k != i)
		{
			pt = name[i];
			name[i] = name[k];
			name[k] = pt;
		}
	}
}
main()
{
	char* name[] = { "VB","C++","Delphi","VFP","IT" };
	int i, n = 5;
	sort(name, n);
	for (i = 0; i < 5; i++)
		printf("%s\n", name[i]);
}